<h3><a href="<?=HOST_PATH?>/admin/tintuc/mancat">Quản lý danh mục cấp 1 - Tin tức</a></h3>

<table class="blue_table">
	<tr>
        <th style="width:5%;">Stt</th>	      
        <th style="width:80%;">Tên</th>
        <th style="width:5%;">Hiển thị</th>
        <th style="width:5%;">Sửa</th>
        <th style="width:5%;">Xóa</th>
	</tr>
    
    <?php
        foreach($this->data as $item){
    ?>
        <tr>
		<td style="width:5%" align="center"><?=$item[stt]?></td>            
		<td style="width:80%" align="center"><a href="#" style="text-decoration:none;"><?=$item[ten]?></a></td>
		
        <td style="width:5%">              		
    		<?php
    		if($item['hienthi']==1){
    		?>
                <a href="<?=BASE_URL?>/admin/tintuc/hienthicat/id/<?=$item[id]?>"><img src="<?=BASE_URL?>/public/images/active_1.png"  border="0"/></a>
    		<? 
    		}else{
    		?>
                <a href="<?=BASE_URL?>/admin/tintuc/hienthicat/id/<?=$item[id]?>"><img src="<?=BASE_URL?>/public/images/active_0.png" border="0" /></a>
            <?php
            }?>        
        </td>                 		

		<td style="width:5%;" align="center"><a href=""><img src="<?=BASE_URL?>/public/images/edit.png"  border="0"/></a></td>
		<td style="width:5%;"><a href="" onClick="if(!confirm('Xác nhận xóa')) return false;"><img src="<?=BASE_URL?>/public/images/delete.png" border="0" /></a></td>
	</tr>
    <?php            
        }
    ?> 
</table>
<a href=""><img src="<?=BASE_URL?>/public/images/add.jpg" border="0"  /></a>
<?php 
       echo $this->paginationControl($this->data, 'Sliding' , 'pagination.phtml'); 
?>


